﻿<Window x:Class="SpecFlowTfsLinkerAddIn.UserStorySelector"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="User Story selector" Width="650" Height="450">
    <Window.Resources>
        <ResourceDictionary Source="ExpressionLight.xaml"/>
    </Window.Resources>
    <Grid x:Name="LayoutRoot">
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        <StackPanel Margin="16,0,8,0">
            <StackPanel Orientation="Vertical" >
                <TextBlock Text="Select TFS source project" Margin="0,10,0,10" FontFamily="Arial" FontWeight="Bold" FontSize="14" />
                <ComboBox x:Name="cbxProjets" SelectedValue="{Binding Path=SelectedProject, Mode=TwoWay}" ItemsSource="{Binding Path=Projects, Mode=OneWay}"  VerticalAlignment="Center" Width="388" Height="25" Text="" VerticalContentAlignment="Center" />
                <TextBlock Text="Search a User Story" Margin="0,10,0,10" FontFamily="Arial" FontWeight="Bold" FontSize="14" />
                <TextBox x:Name="tbRecherche" TextChanged="tbRecherche_TextChanged" Text="" VerticalAlignment="Center" Margin="0,0,0,10" Width="388" Height="25" />
                <TextBlock Text="Select a User Story" Margin="0,10,0,10" FontFamily="Arial" FontWeight="Bold" FontSize="14" />
                <ListBox ItemsSource="{Binding Path=UserStories}" SelectedItem="{Binding Path=SelectedUserStory}"  x:Name="cbxUserStories" MaxHeight="170" Height="170" MinHeight="170" Margin="0,0,0,15" Width="599">
                    <ListBox.ItemTemplate>
                        <DataTemplate>
                            <StackPanel Orientation="Horizontal">
                                <TextBlock Text="{Binding Path=Title}" />
                            </StackPanel>
                        </DataTemplate>
                    </ListBox.ItemTemplate>
                </ListBox>
                <Button x:Name="btnGenerate" Content="Generate SpecFlow" FontFamily="Arial" FontWeight="Bold" FontSize="14" Click="Button_Click" Height="39" Width="264"/>
            </StackPanel>

        </StackPanel>
    </Grid>
</Window>
